import { axios } from '@/libs/util'

 

export const GetOrgAssessType = () => {
  return axios.get('api/Org/GetOrgAssessType')
}
export const GetOrgItemImg = id => {
  return axios.get('api/Org/GetOrgItemImg/'+id)
}


export const SaveOrgAssessType = formData => {
  return axios.post('api/Org/SaveOrgAssessType', formData)
}

export const DeleteOrgAssessType = id => {
  return axios.delete('api/Org/DeleteOrgAssessType/'+id)
}

export const ImportOrgAssessType = formData => {
  return axios.post('api/Org/ImportOrgAssessType', formData)
}
export const ImportAssessOrg = formData => {
  return axios.post('api/Org/ImportAssessOrg', formData)
}

export const SearchOrgGrouphasPage = formData => {
  return axios.post('api/Org/SearchOrgGrouphasPage', formData)
}

export const SearchAssessOrg = formData => {
  return axios.post('api/Org/SearchAssessOrg', formData)
}

export const GetOrgAssess = id => {
  return axios.get('api/Org/GetOrgAssess/'+id)
}
export const SaveOrgAssess = formData => {
  return axios.post('api/Org/SaveOrgAssess', formData)
}

export const SaveOrgFinalResult = formData => {
  return axios.post('api/Org/SaveOrgFinalResult', formData)
}

export const SavedOrgGroup = id => {
  return axios.post('api/Org/SavedOrgGroup/'+id)
}

export const DeleteOrgGroup = id => {
  return axios.delete('api/Org/DeleteOrgGroup/'+id)
}
export const SaveAssessOrg = formData => {
  return axios.post('api/Org/SaveAssessOrg', formData)
}
export const DeleteAssessOrg = id => {
  return axios.delete('api/Org/DeleteAssessOrg/'+id)
} 
export const SaveOrgGroup = formData => {
  return axios.post('api/Org/SaveOrgGroup', formData)
}
export const GetAreaYear = () => {
  return axios.get('api/Org/GetAreaYear')
}

export const TransOrgGroup = formData => {
  return axios.post('api/Org/TransOrgGroup', formData)
}
export const GetOrgTown = groupid => {
  return axios.get('api/Org/GetOrgTown?groupid='+groupid)
}


export const GetOrgAssessBedType = () => {
  return axios.get('api/Org/GetOrgAssessBedType')
}

export const SaveOrgAssessBedType = formData => {
  return axios.post('api/Org/SaveOrgAssessBedType', formData)
}
export const DeleteOrgAssessBedType = id => {
  return axios.delete('api/Org/DeleteOrgAssessBedType/'+id)
}
export const ImportOrgAssessBedType = formData => {
  return axios.post('api/Org/ImportOrgAssessBedType', formData)
}
export const GetOrgBedItemImg = id => {
  return axios.get('api/Org/GetOrgBedItemImg/'+id)
}


export const GetOrgAssessServiceType = () => {
  return axios.get('api/Org/GetOrgAssessServiceType')
}

export const SaveOrgAssessServiceType = formData => {
  return axios.post('api/Org/SaveOrgAssessServiceType', formData)
}
export const DeleteOrgAssessServiceType = id => {
  return axios.delete('api/Org/DeleteOrgAssessServiceType/'+id)
}
export const ImportOrgAssessServiceType = formData => {
  return axios.post('api/Org/ImportOrgAssessServiceType', formData)
}

export const GetOrgServiceItemImg = id => {
  return axios.get('api/Org/GetOrgServiceItemImg/'+id)
}



export const GetOrgAssessServiceBasicType = () => {
  return axios.get('api/Org/GetOrgAssessServiceBasicType')
}

export const SaveOrgAssessServiceBasicType = formData => {
  return axios.post('api/Org/SaveOrgAssessServiceBasicType', formData)
}
export const DeleteOrgAssessServiceBasicType = id => {
  return axios.delete('api/Org/DeleteOrgAssessServiceBasicType/'+id)
}
export const ImportOrgAssessServiceBasicType = formData => {
  return axios.post('api/Org/ImportOrgAssessServiceBasicType', formData)
}
export const GetOrgServiceBasicItemImg = id => {
  return axios.get('api/Org/GetOrgServiceBasicItemImg/'+id)
}


//-----安全规范

export const GetOrgAssessSafeType = () => {
  return axios.get('api/Org/GetOrgAssessSafeType')
}

export const SaveOrgAssessSafeType = formData => {
  return axios.post('api/Org/SaveOrgAssessSafeType', formData)
}
export const DeleteOrgAssessSafeType = id => {
  return axios.delete('api/Org/DeleteOrgAssessSafeType/'+id)
}
export const ImportOrgAssessSafeType = formData => {
  return axios.post('api/Org/ImportOrgAssessSafeType', formData)
}
export const GetOrgSafeItemImg = id => {
  return axios.get('api/Org/GetOrgSafeItemImg/'+id)
}
export const SaveOrgAssessRst = id => {
  return axios.post('api/Org/SaveOrgAssessRst/'+id)
}

